const shelljs = require('shelljs')
const path = require('path'),
  fs = require('fs')

// 删除 lib 目录
if (fs.existsSync(path.resolve(process.cwd(), './lib'))) {
  shelljs.rm('-rf', path.resolve(process.cwd(), './lib'))
  // 重命名 lib-copy 为 lib
  shelljs.mv(path.resolve(process.cwd(), './lib-copy'), path.resolve(process.cwd(), './lib'))
}
